package com.cloudm.technician.ui.modules.personal.change_password

import com.cloudm.technician.ui.base.BasePresenter
import com.cloudm.technician.ui.base.BaseView

/**
 * 作者: wesley
 * 时间: 2017/12/26
 * 描述: 协议接口
 */
interface ChangePasswordContract {

    interface View : BaseView {


        fun getOldPassword(): String?

        fun getNewPassword(): String?

        fun getConfirmPassword(): String?

        fun showOlePasswordEmpMsg()

        fun showNewPasswordEmpMsg()

        fun showNewPasswordLengthMsg()

        fun showNewConfirmNotNameMsg()

        fun changePasswordFailure(errorMsg: String)

        fun changePasswordSuccess()

        fun showChangePasswordDialog()

        fun hideChangePasswordDialog()
    }

    interface Presenter : BasePresenter {

        fun changePassword(oldPassword: String?, newPassword: String?, confirmPassword: String?)
    }
}